from typing import Optional
from datetime import datetime
from pydantic import BaseModel

class HotelRoomBase(BaseModel):
    OrderId: int
    RoomNo: str
    RoomType: str
    CheckInTime: datetime
    CheckOutTime: datetime
    Status: str
    UnitPrice: float

    class Config:
        from_attributes = True

class HotelRoomCreate(HotelRoomBase):
    pass

class HotelRoom(HotelRoomBase):
    RoomId: int
    WorkAreaId: int
    CreateTime: datetime
    UpdateTime: Optional[datetime] = None

    class Config:
        from_attributes = True

class HotelRoomGuest(BaseModel):
    RoomId: int
    PassengerId: int
    Status: str

    class Config:
        from_attributes = True 